//
//  XRCommonNODataTableCell.m
//  XClassRoom
//
//  Created by NeiQuan on 16/11/30.
//  Copyright © 2016年 Mr-yuwei. All rights reserved.
//

#import "XRCommonNODataTableCell.h"

@implementation XRCommonNODataTableCell

-(void)addOwnView
{
   [super addOwnView];
    _NoDataLable=[[UILabel alloc] init];
    _NoDataLable.textColor=[UIColor colorWithNSString:@"888888"];
    _NoDataLable.font=kCommonSmallTextFont;
    _NoDataLable.text=@"/(ㄒoㄒ)/~~ 暂无数据";
    _NoDataLable.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:_NoDataLable];
    [_NoDataLable mas_makeConstraints:^(MASConstraintMaker *make)
    {
        make.center.equalTo(self.contentView).with.centerOffset(CGPointMake(0, 25));
        make.left.equalTo(self.contentView).with.offset(20);
        make.right.equalTo(self.contentView).with.offset(-20);
        make.height.mas_equalTo(21);
    }];
    _NoDataImageView=[[UIImageView alloc] init];
    _NoDataImageView.contentMode=UIViewContentModeScaleAspectFill;
    _NoDataImageView.clipsToBounds=YES;
    [_NoDataImageView setImage:[UIImage imageNamed:@"icon_jiazaishibai"]];
    [self.contentView addSubview:_NoDataImageView];
    [_NoDataImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(_NoDataLable.mas_top);
            make.centerX.equalTo(self.contentView.mas_centerX);
            make.width.height.mas_equalTo(50);
    }];
}
@end
